|
SAP Convergent Charging
Java and XML APIs (Core) |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.highdeal.pnr.hci.ChargingPlanModel
public class ChargingPlanModel
This class represents a charging plan.
The XML APIs specify the following XSD fragment:
XSD Fragment
<xs:element name="chargingPlan">
<xs:complexType>
<xs:sequence>
<xs:element ref="usageCharge" minOccurs="0" maxOccurs="unbounded"/>
<xs:element ref="recurringCharge" minOccurs="0" maxOccurs="1"/>
<xs:element ref="oneshotCharge" minOccurs="0" maxOccurs="1"/>
<xs:element ref="defaultCharge" minOccurs="1" maxOccurs="1"/>
</xs:sequence>
<xs:attribute name="name" type="xs:string"/>
<xs:attribute name="description" type="xs:string"/>
</xs:complexType>
</xs:element>
| Constructor Summary | |
|---|---|
ChargingPlanModel()
Creates an empty charging plan. |
|
ChargingPlanModel(java.lang.String name,
java.lang.String description)
Creates an empty charging plan with a name and a description. |
|
| Method Summary | |
|---|---|
void |
addCharacterData(java.lang.String cData)
Adds character data to the content element. |
void |
addChild(java.lang.String tagName,
XMLMarshallable child)
Adds a child to the object, the child representing
the marshallable object which must be added to the element. |
void |
addUsageCharge(UsageChargeModel usageCharge)
Adds a usage charge and returns the old one which has the same name. |
boolean |
checkValidity()
Check the validity of the charging plan. |
RatingContextDescription |
getContext(ContextualNode child)
Gets the context description for the specified child; The context description contains all the context properties. |
DefaultChargeModel |
getDefaultCharge()
Gets the default charge of the charging plan. |
java.lang.String |
getDescription()
Gets the description of the charging plan. |
java.lang.String |
getName()
Gets the name of the charging plan. |
OneShotChargeModel |
getOneShotCharge()
Gets the one-shot charge. |
PricePlanModel |
getParent()
Gets the price plan parent. |
RecurringChargeModel |
getRecurringCharge()
Gets the recurring charge. |
UsageChargeModel |
getUsageCharge(java.lang.String usageChargeName)
Returns the usage charge corresponding to the name of the usage charge. |
java.util.List<UsageChargeModel> |
getUsageCharges()
Gets a list of all usage charge. |
boolean |
hasOnlyInternalChargingReferences()
Checks if the charging plan has only internal charging references. |
RatingContextDescription |
inheritedContext()
Gets the inherited context; The context description contains all the context properties. |
void |
marshal(XMLOutputter output)
Gives an XML representation of this object, including its children. |
UsageChargeModel |
removeUsageCharge(int index)
Remove the usage charge at the index. |
UsageChargeModel |
removeUsageCharge(java.lang.String usageChargeName)
Remove the usage charge corresponding to the name. |
void |
retreiveInternalChargingReferences(java.util.List<java.lang.String> list)
Retrieve all the internal charging references defined in the charging plan. |
void |
setAttributes(XMLAttributes atts)
Sets the attributes of the XML representation of the element being processed. |
void |
setDefaultCharge(DefaultChargeModel defaultCharge)
Sets the default charge. |
void |
setDescription(java.lang.String description)
Sets the description of the charging plan. |
void |
setName(java.lang.String name)
Sets the name of the charging plan. |
void |
setOneShotCharge(OneShotChargeModel oneShotCharge)
Sets the one-shot charge. |
void |
setParent(ContextualNode parent)
Sets the parent node |
void |
setRecurringCharge(RecurringChargeModel recurringCharge)
Sets the recurring charge. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ChargingPlanModel()
public ChargingPlanModel(java.lang.String name,
java.lang.String description)
name - the name of the chargeable item.description - the description given by the user.| Method Detail |
|---|
public java.lang.String getName()
public void setName(java.lang.String name)
name - the nem of the charging plan.public java.lang.String getDescription()
public void setDescription(java.lang.String description)
description - the description of the charging plan.public UsageChargeModel getUsageCharge(java.lang.String usageChargeName)
usageChargeName - the name of the usage charge.
public void addUsageCharge(UsageChargeModel usageCharge)
usageCharge - the usage charge to add.public UsageChargeModel removeUsageCharge(java.lang.String usageChargeName)
usageChargeName - the name of the usage charge.
public UsageChargeModel removeUsageCharge(int index)
index - the index of the usage charge.
public java.util.List<UsageChargeModel> getUsageCharges()
public DefaultChargeModel getDefaultCharge()
DefaultChargeModelpublic void setDefaultCharge(DefaultChargeModel defaultCharge)
defaultCharge - the default chargeDefaultChargeModelpublic RecurringChargeModel getRecurringCharge()
RecurringChargeModelpublic void setRecurringCharge(RecurringChargeModel recurringCharge)
recurringCharge - the recurring charge.RecurringChargeModelpublic OneShotChargeModel getOneShotCharge()
OneShotChargeModelpublic void setOneShotCharge(OneShotChargeModel oneShotCharge)
oneShotCharge - the one-shot chargepublic void retreiveInternalChargingReferences(java.util.List<java.lang.String> list)
list - the list of all the internal charging references defined in the charging plan.public boolean hasOnlyInternalChargingReferences()
public boolean checkValidity()
public PricePlanModel getParent()
public void setParent(ContextualNode parent)
ContextualNode
setParent in interface ContextualNodeparent - The parent nodepublic RatingContextDescription getContext(ContextualNode child)
ContextualNode
getContext in interface ContextualNodechild - The child node
public RatingContextDescription inheritedContext()
ContextualNode
inheritedContext in interface ContextualNodepublic void setAttributes(XMLAttributes atts)
XMLMarshallable
setAttributes in interface XMLMarshallableatts - The XML attributes of the current element
public void addChild(java.lang.String tagName,
XMLMarshallable child)
XMLMarshallablechild representing
the marshallable object which must be added to the element.
addChild in interface XMLMarshallabletagName - The name of tag for the childchild - The child to be addedpublic void addCharacterData(java.lang.String cData)
XMLMarshallable
addCharacterData in interface XMLMarshallablecData - The character data to be addedpublic void marshal(XMLOutputter output)
XMLMarshallable
marshal in interface XMLMarshallableoutput - The XML output to marshal the object into
|
Document Published: October 2015 (SAP CC 4.0 SP10 and Later) | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||